package com.xylx.interview.queue;

import java.util.LinkedList;
import java.util.Queue;

public class QueueServer {

    //实例一个普通客户队列
    Queue<Waiter> waiterList = new LinkedList<Waiter>();

    //普通用户队列添加已经排好队的人
    public Queue<Waiter> init() {
        for (int i = 1; i <= 30; i++) {
            Waiter w = new Waiter();
            w.setNum(i);
            w.setFrontNum(i - 1);
            waiterList.offer(w);
        }
        
        return waiterList;
    }
}